package system

import (
	"github.com/99designs/gqlgen/graphql/handler"
	"gql-t4/location/graph/generated"
	"gql-t4/location/graph/resolver"
)

func GetEndpoint() *handler.Server {
	srv := handler.NewDefaultServer(generated.NewExecutableSchema(generated.Config{Resolvers: &resolver.Resolver{}}))
	return srv
}
